package com.mofang.activity.user;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemClickListener;
import android.widget.ListView;

import com.mofang.R;
import com.mofang.activity.BaseTitleViewActiviey;
import com.mofang.activity.recommend.ScheduleDetailsActivity;
import com.mofang.adapters.CustomerFeedbackAdapter;

public class CustomerFeedBackActivity extends BaseTitleViewActiviey {

	private ListView customer_feedback_list;
	private CustomerFeedbackAdapter adapter;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		setContentView(R.layout.activity_customer_feed_back);
		super.onCreate(savedInstanceState);
		setNavigationTitle("报备客户反馈");
		setNavigationLeftBtnImage(R.drawable.return_arrow);
		setNavigationRightBtnImage(R.drawable.right_arrow);
		adapter = new CustomerFeedbackAdapter(getApplicationContext());
		customer_feedback_list.setAdapter(adapter);
		
	}

	
	@Override
	protected void initView() {
		super.initView();
		customer_feedback_list = (ListView) findViewById(R.id.common_id_lv);
	}
	@Override
	protected void setListener() {
		super.setListener();
		customer_feedback_list
		.setOnItemClickListener(new OnItemClickListener() {

			@Override
			public void onItemClick(AdapterView<?> parent, View view,
					int position, long id) {
				Intent intent = new Intent(getApplicationContext(),
						ScheduleDetailsActivity.class);
				intent.putExtra("CustomerFeedbackTag",
						"CustomerFeedbackTag");
				startActivity(intent);
			}
		});
	}
	
	@Override
	public void rightButtonOnClick() {
		super.rightButtonOnClick();
		
	}
}